package com.bean;

import com.imessage.type.BaseState;
import com.imessage.type.ManageResourceHasHide;
import com.imessage.type.ManageResourceType;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Getter
@Setter
@ToString
@Entity
@Table(name = "manage_resource", schema = "public")
public class ManageResource extends BaseModel implements Serializable {

    @Column(name = "name", nullable = true, length = 255)
    private String name;

    @Column(name = "type", nullable = true, length = 2)
    private ManageResourceType type = ManageResourceType.button;

    @Column(name = "url", nullable = true, length = 255)
    private String url;

    @Column(name = "icon", nullable = true, length = 255)
    private String icon;

    @Column(name = "has_hide", nullable = true, length = 2)
    private ManageResourceHasHide hasHide =ManageResourceHasHide.hidden;

    @Column(name = "sort", nullable = true)
    private Long sort;

    @Column(name = "manage_high_resource_id", nullable = true)
    private Long manageHighResourceId;

    @Column(name = "state", nullable = true, length = 2)
    private BaseState state = BaseState.normal;


}
